@import 'toolbar';
@import 'loader';

body {
    min-height: 100vh;
}

body.game {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    min-height: initial;
    display: flex;
    flex-direction: column;
}

.before-game-start .hidden-until-game-start {
    display: none;
}

.contents {
    flex: 1;
    display: flex;
}

.bgblack-fade {
    background-color: black;
    transition-property: background-color;
    transition-duration: 1s;
    transition-timing-function: linear;
}

#xsystem35 {
    margin: auto;
}

#xsystem35.fit {
    margin: 0;
    flex: 1;
}

/* the canvas *must not* have any border or padding, or mouse coords will be wrong */
canvas.emscripten {
    border: 0px none;
}

#xsystem35.fit.pillarbox {
    canvas.emscripten {
        height: 100%;
        max-height: 100vh;
        margin: auto;
        display: block;
    }
}
#xsystem35.fit.letterbox {
    display: flex;
    align-items: center;

    canvas.emscripten {
        width: 100%;
    }
}

.pixelated {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
}

.modal-container {
    width: initial;
}

.modal.active .modal-overlay {
    background-color: rgba(69,77,93,.5);
}

.settings {
    section > div {
        padding-left: 1rem;
    }
    select {
        width: initial;
    }
}

#textlog-modal {
    .modal-container {
	max-width: 90vw;
	background-color: rgba(255, 255, 255, 0.85);
    }
    pre {
	margin: 0;
    }
}

.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 400px;
    z-index: 500;
}

.toast {
    -webkit-animation: slide-down .2s ease 1;
    animation: slide-down .2s ease 1;
    margin: 5px;
}
